import os

files = os.listdir("./stu/")
# print(files)

with open("./stu.txt","r") as f:
    stus = f.read().strip().split("\n")

non_commit_stus = []
commit_stus = []
for file in files:
    if file.strip() in stus:
        commit_stus.append(file.strip())

# 找出没有提交的
for stu in stus:
    if stu not in commit_stus:
        non_commit_stus.append(stu)

print("已提交学生：")
for stu in commit_stus:
    print(stu)

print("未提交学生：")
for stu in non_commit_stus:
    print(stu)


print("作弊学生：")
files = os.listdir("./cheat/")
for file in files:
    with open("./cheat/"+file,"r") as f:
        print(f.read())
